/**
 * Description:
 * Class Name:modified_test
 * Date:2022/3/23 21:52
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第9章_泛型._9_3_类型通配符;

import java.util.ArrayList;
import java.util.List;

public class modified_test {
    public static void tt(List c){
        for (Object s : c) {
            System.out.println(s);
        }
    }
    public static void main(String[] args) {
//        List<String> c = new ArrayList<>();
//        c.add("hi in modified test");
//        modified_test.tt(c);

        // 创建一个List<String>对象，让其被tt方法调用
        List<String> strList = new ArrayList<>();
        modified_test.tt(strList);
    }
}
